/*
This is just a placeholder blank stylesheet so as to support adding custom styles budled with theme's default styles

Read https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#bundling-custom-css-with-themes-assets for more info
*/

:root {
    --footer-height: 90px;
    --hljs-bg: rgb(44, 44, 44);
    --code-bg: rgb(240, 240, 240);
    --code-bg-border: rgb(200, 200, 200);
    --black: rgb(0, 0, 0);
    --white: rgb(255, 255, 255);
    --tag: rgb(235, 235, 235);
    /* --nav-width: 1300px; */
    /* --main-width: 770px; */
    --article-width: 650px;
    --toc-width: 230px;
}

.first-entry {
    min-height: 100px;
    margin: 0px;
}

.social-icons {
    padding: 0px;
    padding-bottom: 20px;
}

/*------------------------------------------------------------*/

.post-content h1 {
    font-size: 30px;
    border-bottom: 1px solid #ddd;
}

.post-content h2 {
    font-size: 28px;
    border-bottom: 1px solid #ddd;
}

.post-content h3 {
    font-size: 26px;
    border-bottom: 1px solid #ddd;
}

.post-content h4 {
    font-size: 22px;
}

.post-content h5 {
    font-size: 18px;
}

.post-content h6 {
    font-size: 15px;
}

.post-content p {
    margin-top: 10px;
    margin-bottom: 10px;
    /* 所有首行缩进 */
    /* text-indent: 2em;  */
}

/*---------------------------------------------------*/

.dark body,
.dark a,
.dark .post-title {
    color: rgba(180, 181, 182, 0.8);
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark p {
    color: rgba(180, 181, 182, 0.8);
}

.dark .toc .details {
    color: rgba(180, 181, 182, 0.8);
}

/*------------------------------------------------------------*/

/*img*/
img {
    border-radius: 10px;
}

.dark img {
    opacity: 0.8;
}

/*-----------点击图片放大------------*/
img:active {
    /* margin:50px; */
    border-radius: 10px;
    transform: scale(1.35, 1.35);
}

/*代码里的滚动*/
@media screen and (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 15px;
        height: 13px;
    }
}


/*页面顶部栏两边宽度*/
.nav {
    max-width: calc(var(--nav-width) + var(--gap) * 10);
}

.main {
    max-width: calc(var(--main-width) + var(--gap) * 5);
}

/*footer*/
.footer {
    max-width: none;
    padding: 10px 0 5px 0;
    font-size: 14px;
    /* color: black; */
    /* line-height: 50px; */
}

.footer a {
    border-bottom: none;
}

.footer a:hover {
    font-weight: bolder;
    border-bottom: none;
}

/*字体大小*/
.post-title {
    font-size: 30px;
}


.post-content {
    font-family: Consolas, "LXGWWenKaiLite-Bold";
}

.dark .post-content {
    color: rgba(180, 181, 182, 0.8);
}

body {
    font-size: 18px;
    line-height: 1.6;
    font-family: Consolas, "LXGWWenKaiLite-Bold";
}

/*引言*/
.post-content blockquote {
    border-left: 4px solid #42b983;
    padding: 1px 15px;
    color: #777;
    background-color: rgba(66, 185, 131, .1);
}

/* GitHub 样式的表格 */
.post-content table {
    page-break-inside: avoid;
    word-break: normal;
}

.post-content table tr {
    border: 1px solid #979da3 !important;
}

.post-content table tr:nth-child(2n),
.post-content thead {
    background-color: var(--code-bg);
}

.post-content table th {
    border: 1px solid #979da3 !important;
    font-size: 18px;
}

.post-content table td {
    border: 1px solid #979da3 !important;
}

.post-content table {
    word-break: normal;
}


.entry-cover1 {
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

.post-entry {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.entry-cover {
    border-radius: 10px;
    overflow: hidden;
    width: 40%;
    margin-bottom: unset;

    max-height: 150px;
    display: grid;
    align-content: center;
}

.post-info {
    display: inline-block;
    overflow: hidden;
    width: 100%;
    padding-right: 10px;
}

.post-description {
    padding-bottom: 10px;
    color: var(--secondary);
}

/*---------------------------*/
.topInner {
    display: grid;
    align-items: baseline;
    justify-items: center;
    margin: 7px;
    font-weight: 900;
}

.topSvg {
    width: 20px;
}

.top-link {
    padding: unset;
}